package com.peng.service;

import com.peng.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.peng.vo.LoginVo;
import com.peng.vo.result.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author Dengp
 * @since 2022-07-20
 */
public interface UserService extends IService<User> {

    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    /**
     * 根据ticket过去用户信息
     * @param request
     * @param response
     * @param ticket
     * @return
     */
    User getUserTicket(HttpServletRequest request,HttpServletResponse response,String ticket);

    RespBean updatePassword(String userTicket, String password, HttpServletRequest request,
                            HttpServletResponse response);
}
